Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix not clearing when given invalid values #1756

Conversation

ticklemynausea
Copy link

when given an invalid value (not in the range of specified possible values), the select component shows the clear select icon despite being empty. this was determined to be caused by renderClear() being incorrectly called.

this PR simplifies the logic that determines when the clear icon is to be rendered.

@coveralls
Copy link

Coverage Status

Coverage increased (+0.009%) to 92.892% when pulling 521028a on lifeonmarspt:fix-not-clearing-invalid-values into 1d15068 on JedWatson:master.

@agirton
Copy link
Collaborator

agirton commented May 25, 2017

Hi @ticklemynausea thank you for your contribution. It seems there is a lot of churn in this area lately. Do you mind adding a test to show that the x should not show with an invalid value?

Also per guidelines do not include the build files in your PR. We generate these during deployment.

@gwyneplaine
Copy link
Collaborator

thanks for this @ticklemynausea, I've pulled out the crux of your PR into #2100 to be merged into master

JedWatson added a commit that referenced this pull request Oct 26, 2017
fix not clearing when given invalid values, from #1756
@hugopeixoto hugopeixoto deleted the fix-not-clearing-invalid-values branch November 16, 2017 13:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants